<!DOCTYPE html>
<html lang="en">
<head th:include="include :: header"></head>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>BOOTLG 微信管理平台 - 登录</title>
    <meta name="keywords" content="BOOTLG">
    <meta name="description" content="BOOTLG">
    <link href="/css/common/login.css" rel="stylesheet">
    <script type="text/javascript">
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
        $(function () {
        	$("#login").click(function(){
    		    var config={
   				   url:'/login',  
   				   data:formSerialize("loginForm")
    		    }
    		    EasyAjax.post_form_json(config,function(r){
    		    	layer.msg(r.msg);
    		    	if(r.code==0){
    		    		window.location.href="/index";
    		    	}
    		    });
    	    }); 
        	
        	$("#forget").click(function(){
    		    var config={
   				   url:'user/list',  
   				   data:{"username":"zs"}
    		    }
    		    EasyAjax.post_json(config,function(r){
    		    	layer.msg(r.msg);
    		    	if(r.code==0){
    		    		window.location.href="user/selectList";
    		    	}
    		    });
    	    }); 
        })
    </script>
</head>
<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        <h1>[ BOOTLG ]</h1>
                    </div>
                    <div class="m-b"></div>
                    <h4>欢迎使用 <strong>BOOTLG 微信管理平台</strong></h4>
                    <ul class="m-b">
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势一</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势二</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势三</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势四</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势五</li>
                    </ul>
                    <strong>还没有账号？ <a href="#">立即注册&raquo;</a></strong>
                </div>
            </div>
            <div class="col-sm-5">
                <form id="loginForm">
                    <h4 class="no-margins">登录：</h4>
                    <p class="m-t-md">登录到BOOTLG微信管理平台</p>
                    <input type="text" name="uname" class="form-control uname" placeholder="用户名" />
                    <input type="password" name="upass" id="upass" class="form-control pword m-b" placeholder="密码" />
                    <a href="">忘记密码了？</a>
                    <button type="button" id="login"  class="btn btn-success btn-block">登录</button>
                    <button type="button" id="forget"  class="btn btn-success btn-block">忘记密码</button>
                </form>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; 2018 All Rights Reserved. BOOTLG
            </div>
        </div>
    </div>
    <div th:include="include :: footer">
    
    </div>
</body>

</html>
